#include <bits/stdc++.h>
using namespace std;

int main() { 
  freopen ("list", "r", stdin);
  freopen ("cf", "w", stdout);
  int pre = 0, now = 0;
  scanf("%d", &pre);
  while (~scanf("%d", &now)) { 
    printf("%d + %d\n",pre, now - pre);
    pre = now;
  }
}
